package com.formiaomiao.demain.utils;

import com.formiaomiao.demain.model.DemainBean;
import com.formiaomiao.demain.model.FollowBean;

import java.util.Comparator;

public class sortClass implements Comparator {
    @Override
    public int compare(Object o1, Object o2) {
        FollowBean d1 = ((FollowBean) o1);
        FollowBean d2 = ((FollowBean) o2);
        int flag = d2.getCreateDate().compareTo(d1.getCreateDate());
        return flag;
    }
}
